package fy.hr.operator.impl;

import com.seeyon.v3x.services.flow.bean.FlowExport;

import fy.form.listen.operate.AForm_Save_Operator;
import fy.form.listen.operate.IFormOperator;
import fy.hr.bean.RecruitmentBean;
import fy.hr.dao.RecruitmentPersonInfoDao;

public class RecruitmentFormOperator extends AForm_Save_Operator implements IFormOperator {
	private  RecruitmentBean bean =new RecruitmentBean();
	// private List<String> personCodeList = new ArrayList<String>();//暂时不写多个
	public String getFormName() {
		return "招聘录用审批表";
	}

	@Override
	protected void parseOtherField_FirstStep(FlowExport flowExport) {
		

	}

	@Override
	protected void parseValueExport(com.seeyon.v3x.services.form.bean.ValueExport ve) {
		String fieldName = ve.getDisplayName();
		String value = ve.getValue();
		if ("身份证".equals(fieldName)) {
			bean.setIdnum(value);
		}
			if("applyid".equals(fieldName)){
				bean.setApplyid(value);
			}
	}

	public boolean save() {
	RecruitmentPersonInfoDao rp=new RecruitmentPersonInfoDao();
	rp.setRecruitmentBean(bean);
		try {
		return rp.statusCallback();
		} catch (Exception e) {
			e.printStackTrace();
		}
return false;
	}

}
